package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * ExamHistoryId entity. @author MyEclipse Persistence Tools
 */

public class ExamHistoryId implements java.io.Serializable {

	// Fields

	private Integer examHistoryId;
	private String empolyeeName;
	private String employeeLoginName;
	private String examIp;
	private Integer examId;
	private Timestamp examTime;
	private Double examScore;
	private Integer examUseTime;

	// Constructors

	/** default constructor */
	public ExamHistoryId() {
	}

	/** full constructor */
	public ExamHistoryId(Integer examHistoryId, String empolyeeName,
			String employeeLoginName, String examIp, Integer examId,
			Timestamp examTime, Double examScore, Integer examUseTime) {
		this.examHistoryId = examHistoryId;
		this.empolyeeName = empolyeeName;
		this.employeeLoginName = employeeLoginName;
		this.examIp = examIp;
		this.examId = examId;
		this.examTime = examTime;
		this.examScore = examScore;
		this.examUseTime = examUseTime;
	}

	// Property accessors

	public Integer getExamHistoryId() {
		return this.examHistoryId;
	}

	public void setExamHistoryId(Integer examHistoryId) {
		this.examHistoryId = examHistoryId;
	}

	public String getEmpolyeeName() {
		return this.empolyeeName;
	}

	public void setEmpolyeeName(String empolyeeName) {
		this.empolyeeName = empolyeeName;
	}

	public String getEmployeeLoginName() {
		return this.employeeLoginName;
	}

	public void setEmployeeLoginName(String employeeLoginName) {
		this.employeeLoginName = employeeLoginName;
	}

	public String getExamIp() {
		return this.examIp;
	}

	public void setExamIp(String examIp) {
		this.examIp = examIp;
	}

	public Integer getExamId() {
		return this.examId;
	}

	public void setExamId(Integer examId) {
		this.examId = examId;
	}

	public Timestamp getExamTime() {
		return this.examTime;
	}

	public void setExamTime(Timestamp examTime) {
		this.examTime = examTime;
	}

	public Double getExamScore() {
		return this.examScore;
	}

	public void setExamScore(Double examScore) {
		this.examScore = examScore;
	}

	public Integer getExamUseTime() {
		return this.examUseTime;
	}

	public void setExamUseTime(Integer examUseTime) {
		this.examUseTime = examUseTime;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ExamHistoryId))
			return false;
		ExamHistoryId castOther = (ExamHistoryId) other;

		return ((this.getExamHistoryId() == castOther.getExamHistoryId()) || (this
				.getExamHistoryId() != null
				&& castOther.getExamHistoryId() != null && this
				.getExamHistoryId().equals(castOther.getExamHistoryId())))
				&& ((this.getEmpolyeeName() == castOther.getEmpolyeeName()) || (this
						.getEmpolyeeName() != null
						&& castOther.getEmpolyeeName() != null && this
						.getEmpolyeeName().equals(castOther.getEmpolyeeName())))
				&& ((this.getEmployeeLoginName() == castOther
						.getEmployeeLoginName()) || (this
						.getEmployeeLoginName() != null
						&& castOther.getEmployeeLoginName() != null && this
						.getEmployeeLoginName().equals(
								castOther.getEmployeeLoginName())))
				&& ((this.getExamIp() == castOther.getExamIp()) || (this
						.getExamIp() != null
						&& castOther.getExamIp() != null && this.getExamIp()
						.equals(castOther.getExamIp())))
				&& ((this.getExamId() == castOther.getExamId()) || (this
						.getExamId() != null
						&& castOther.getExamId() != null && this.getExamId()
						.equals(castOther.getExamId())))
				&& ((this.getExamTime() == castOther.getExamTime()) || (this
						.getExamTime() != null
						&& castOther.getExamTime() != null && this
						.getExamTime().equals(castOther.getExamTime())))
				&& ((this.getExamScore() == castOther.getExamScore()) || (this
						.getExamScore() != null
						&& castOther.getExamScore() != null && this
						.getExamScore().equals(castOther.getExamScore())))
				&& ((this.getExamUseTime() == castOther.getExamUseTime()) || (this
						.getExamUseTime() != null
						&& castOther.getExamUseTime() != null && this
						.getExamUseTime().equals(castOther.getExamUseTime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getExamHistoryId() == null ? 0 : this.getExamHistoryId()
						.hashCode());
		result = 37
				* result
				+ (getEmpolyeeName() == null ? 0 : this.getEmpolyeeName()
						.hashCode());
		result = 37
				* result
				+ (getEmployeeLoginName() == null ? 0 : this
						.getEmployeeLoginName().hashCode());
		result = 37 * result
				+ (getExamIp() == null ? 0 : this.getExamIp().hashCode());
		result = 37 * result
				+ (getExamId() == null ? 0 : this.getExamId().hashCode());
		result = 37 * result
				+ (getExamTime() == null ? 0 : this.getExamTime().hashCode());
		result = 37 * result
				+ (getExamScore() == null ? 0 : this.getExamScore().hashCode());
		result = 37
				* result
				+ (getExamUseTime() == null ? 0 : this.getExamUseTime()
						.hashCode());
		return result;
	}

}